import Vue from 'vue'
import VueRouter from 'vue-router'
import Find from '../zy/find.vue'
import My from '../zy/my.vue'
import People from '../zy/people.vue'
import gz from '../zy/guanzhu.vue'
import Shoop from '../zy/shoop.vue'
import tj from '../zy/tj.vue'
import ph from '../zy/ph.vue'
import gd from '../zy/gd.vue'
import zzdt from '../zy/zzdt.vue'
import xg from '../zy/xg.vue'
import gs from '../zy/gs.vue'
Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect:'tj'
  },
    {
      path: '/',
      component: Find,
      children: [
        {
        path: 'tj',
        component:tj
        },
        {
          path: 'ph',
          component:ph
        },{
          path: 'gs',
          component:gs
        },{
          path: 'xg',
          component:xg
        },{
          path: 'zzdt',
          component:zzdt
        },{
          path: 'gd',
          component:gd
        },
      ]
      
    },{
      path: '/gz',
      component: gz,
      
    },{
      path: '/people',
      component: People,
      
    },{
      path: '/shoop',
      component: Shoop,
      
    },{
      path: '/my',
      component: My,
      
    },
    
  ],
})

export default router
